import { defineStore } from 'pinia'
// interface ShopsType {
//     shop_ico: string,
//     shop_name: string,
//     mobile: string,
//     addr_detail: string,
//     main: string
// }
// interface StateType {
//     shops: ShopsType
// }
export const useShopData = defineStore({
  id: 'shopItem',
  state: () => {
    return {
      // shops<Array< shopsType >>: []
      cityWeather: '重庆',
      shops: []
    }
  },
  actions: {
    updataShop(array: any) {
      this.shops = array
    },
    updataWeather(name: any) {
      this.cityWeather = name
    }
  }
})
